package com.choosefine.springboot.devops.base.config;

import org.json.JSONObject;

import java.util.Map;

/**
 * Created by Administrator on 2017/1/3 0003.
 */
public class JsonUtil {

    public static String mapToJson(Map<String,Object> map){
        JSONObject json=new JSONObject(map);
        System.out.println(map);
        System.out.println(json);
        return json.toString();
    }

}
